home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1984 January to June
/
Ahoy_Magazine_84-Jan-Jun_1984_Double_L.d64
/
address book
(
.txt
)
next >
Wrap
Commodore BASIC
|
2022-10-26
|
7KB
|
264 lines
0 rem--ahoy--mar issue--address book--prog page 39
1500 data1500,do,not,enter,data,on,this,line
1501 print"[147]":poke53281,0:poke53280,11
1505 input"what is your name";n$:goto1515
1510 input"[147]sorry, i forgot your name";n$
1515 print"[147]"spc(20-int((len(n$)+11)/2));"thank you ";n$;"."
1520 forl=1to1000:next
1525 print"[147]":poke53281,0:poke53280,11
1526 print"[158]address book <c> 1984 planet earth ltd.":print:t=0
1530 print" list all entries"
1531 print
1532 print" last name"
1533 printspc(25);"[146]"
1534 print" first name"spc(10);" address [146]"
1535 printspc(25);" book[146]"
1536 print" address"spc(12);"o [215] [215] [146][208]"
1537 printspc(23);"[152] [146]% [152] [146] [146] '[152] [146]"
1538 print" city"spc(15);"[204] [215] [215] [146]:"
1539 printspc(24);"[149] by [149] [146]"
1540 print" state"spc(14);"[149] b.behling[149] [146]"
1541 printspc(24);"[149] [195][195][195][195][195][195][195][195][195][195][195][195][149] [146]"
1542 print" zip code"spc(11);"[149] [146]"
1543 printspc(24);"[149] [146]"
1544 print" phone number"spc(7);" [152][201][146] [201][146]"
1545 print
1546 print" exit program"
1547 print
1548 print" enter data"
1549 print
1550 print"[153]choice?"
1592 getk$:ifk$=""then1592
1605 ifk$="l"thengosub1722
1610 ifk$="n"thengosub2000
1615 ifk$="f"thengosub7000
1620 ifk$="a"thengosub9000
1625 ifk$="c"thengosub4000
1630 ifk$="s"thengosub10000
1635 ifk$="x"thengosub6000
1640 ifk$="e"thengoto23000
1645 ifk$="z"thengosub12000
1650 ifk$="p"thengosub15000
1721 goto1525
1722 print"[147]"
1723 gosub20000
1724 ifa=1500thengoto1730
1726 gosub19000
1727 goto1722
1730 print"[147]"spc(12);"[158] end of files. [146]"
1735 forl=1to1000:next
1740 restore
1745 return
2000 input"[147]what is the last name";j$:z=len(j$)
2010 print"[147]"spc(20-int((len(n$)+11)/2));"thank you ";n$;"."
2020 forl=1to1000:next:goto2060
2030 printspc(7);"searching, please standby."
2060 gosub20000
2070 ifa=1500thengoto2140
2090 ifj$=left$(b$,z)thent=1:gosub19000
2130 print"[147]":goto2030
2140 ift=1thengoto2220
2150 print"[147]"spc(20-int((len(j$)+14+len(n$))/2));j$;" not on file "n$;"."
2160 printspc(8);"[158] [223]"
2170 printspc(8);" [146]hit return to continue.[158] "
2180 printspc(8);"[146][223] [146] "
2190 getk$:ifk$=""thengoto2190
2200 restore
2210 return
2220 print"[147]"spc(12);"[158] end of files. [146]"
2230 forl=1to1000:next
2240 restore
2250 return
4000 input"[147]what city do you want";j$:z=len(j$)
4200 print"[147]"spc(20-int((len(n$)+11)/2));"thank you ";n$;"."
4300 forl=1to1000:next:goto4500
4400 printspc(7);"searching please standby."
4500 gosub20000
4600 ifa=1500thengoto5300
5000 ifj$=left$(e$,z)thent=1:gosub19000
5200 print"[147]":goto4400
5300 ift=1thengoto5750
5350 print"[147]"spc(20-int((len(j$)+14+len(n$))/2));j$;" not on file "n$;"."
5360 printapc(8);" [223]"
5400 printspc(8);" [146]hit return to continue. "
5410 printspc(8);"[146][223] [146] "
5500 getk$:ifk$=""thengoto5500
5600 restore
5700 return
5750 print"[147]"spc(12);"[158] end of files. [146]"
5800 forl=1to1000:next
5850 restore
5900 return
6000 print"[147]"spc(5);"hit to exit without saving."
6100 print""spc(8);"hit to abort to menu."
6200 print""spc(8);"hit to save listings."
6350 print""spc(5);"[158] rewind tape before saving!!![146]"
6900 getk$:ifk$=""thengoto6900
6910 ifk$="x"thenend
6920 ifk$="a"goto1525
6959 ifk$="s"thensave"address book 4:1"
6960 return
7000 input"[147]what is the first name";j$:z=len(j$)
7100 print"[147]"spc(20-int((len(n$)+11)/2));"thank you ";n$;"."
7200 forl=1to1000:next:goto7500
7300 printspc(7);"searching, please standby."
7500 gosub20000
7600 ifa=1500thengoto8300
8000 ifj$=left$(c$,z)thent=1:gosub19000
8200 print"[147]":goto7300
8300 ift=1thengoto8700
8350 print"[147]"spc)20-int((len(j$)+14+len(n$))/2));j$;" not on file "n$;"."
8360 printspc(8);"[159] [223]"
8400 printspc(8);" [146]hit return to continue.[159] "
8410 printspc(8);"[146][223] [146] "
8500 getk$:ifk$=""thengoto8500
8600 restore
8650 return
8700 print"[147]"spc(12);"[158] end of files. [146]"
8750 forl=1to1000:next
8800 restore
8850 return
9000 input"[147]what is the address";j$:z=len(j$)
9010 print"[147]"spc(20-int((len(n$)+11/2));"thank you ";n$;"."
9015 forl=1to1000:next:goto9035
9020 printspc(7);"searching, please standby"
9035 gosub20000
9040 ifa=1500thengoto9065
9045 ifj$=left$(d$,z)thent=1:gosub19000
9060 print"[147]":goto9035
9065 ift=1thengoto9100
9070 print"[147]"spc(1);j$;" not on file ";n$;"."
9073 printspc(8);"[156] [223]"
9075 printspc(8);"9 [146]hit return to continue.[156] "
9077 printspc(8);"[146][223] [146] "
9080 getk$:ifk$=""thengoto9080
9085 restore
9090 return
9100 print"[147]"spc(12);"[158] end of files. [146]"
9110 forl=1to1000:next
9120 restore
9130 return
10000 input"[147]what state do you want";j$:z=len(j$)
10010 print"[147]"spc(20-int((len(n$)+11)/2));"thank you ";n$;"."
10015 forl=1to1000:next:goto10035
10020 printspc(7);"searching, please standby."
10035 gosub20000
10040 ifa=1500thengoto10065
10045 ifj$=left$(f$,z)thent=1:gosub19000
10060 print"[147]":goto10035
10065 ift=1thengoto10095
10070 print"[147]"spc(20-int((len(j$)+14+len(n$))/2;j$;" not on file "n$;"."
10073 printspc(8);" [223]"
10075 printspc(8);" [146]hit return to continue. "
10077 printspc(8);"[146][223] [146] "
10080 getk$:ifk$=""thengoto10080
10085 restore
10090 return
10095 print"[147]"spc(12);"[158] end of files. [146]
10100 [129]l[178]1[164]1000:[130]
10105 [140]
10110 [142]
12000 [133]"loadwhat is the zip code";j$:z[178][195](j$)
12005 [153]"load"[166]20[171][181](([195](n$)[170]11)[173]2));"thank you ";n$"."
12010 [129]l[178]1[164]1000:[130]:[137]12015
12013 [153][166]7);"searching, please stankby."
12015 [141]20000
12020 [139]a[178]1500[167][137]12045
12025 [139]j$[178][200](g$,z)[167]t[178]1:[141]19000
12040 [153]"load":[137]12015
12045 [139]t[178]1[167][137]12075
12053 [153][166]8);" (NULL)"
12055 [153][166]8);" waithit return to continue. "
12057 [153][166]8);"wait(NULL) wait)"
12060 [161]k$:[139]k$[178]""[167][137]12060
12065 [140]
12070 [142]
12075 [153]"load"[166]12);"sys end of files. wait"
12080 [129]l[178]1[164]1000:[130]
12085 [140]
12090 [142]
15000 [133]"loadwhat phone number";j$:z[178][195](j$)
15005 [153]"load"[166]20[171][181](([195](n$)[170]11)[173]2));"thank you ";n$;"."
15010 [129]l[178]1[164]1000:[130]:[137]15015
15013 [153][166]7);"searching, please standby."
15015 [141]20000
15020 [139]a[178]1500[167][137]15045
15025 [139]j$[178][200](h$,z)[167]t[178]1:[141]19000
15040 [153]"load":[137]15015
15045 [139]t[178]1[167][137]15075
15053 [153][166]8);"for (NULL)"
15055 [153][166]8);" waithit return to continue.for "
15057 [153][166]8);"wait(NULL) wait "
15060 [161]k$:[139]k$[178]""[167][137]15060
15065 [140]
15070 [142]
15075 [153]"load"[166]12);"sys end of files. wait"
15080 [129]l[178]1[164]1000:[130]
15085 [140]
15090 [142]
19000 [153]"loadcontfile number >";a
19010 [153]"open(NULL)lenlenlenlenlenlenlenlenlenlenlenlenright$"
19100 [153]"openpeekname openpeek>";b$;", ";c$
19110 [153]"openpeek peek"
19150 [153]"openpeekaddress openpeek>";d$
19160 [153]"openpeek peek"
19200 [153]"openpeekcity openb>";e$
19210 [153]"openpeek peek"
19300 [153]"openpeekstate openpeek>";f$
19310 [153]"openpeek peek"
19350 [153]"openpeekzip code openpeek>";g$
19355 [153]"openpeek peek"
19356 [153]"openpeekphone numberopenb>";h$
19357 [153]"openpeek peek"
19400 [153]"sys-lenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenright$"
19410 [153]"syspeekhit to abort to menusyspeek"
19420 [153]"syspeek peek"
19425 [153]"peekhit to edit filesys peek"
19430 [153]"peek peek"
19440 [153]"peekhit return to continue syspeek"
19450 [153]"mid$lenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlenlen(NULL)"
19500 [161]k$:[139]k$[178]""[167][137]19500
19540 [139]k$[178]"x"[167][140]
19550 [139]k$[178]"x"[167][137]1525
19560 [139]k$[178]"e"[167]ed[178]1:[137]19700
19600 [142]
19700 [141]23070
19705 [139]ed[178]2[167][153]"list";a;"-";a[170]1:[137]19715
19710 [153]"list"a
19715 [153]"ononon";:[151]198,4:[129]i[178]631[164]636:[151]i,13:[130]:[128]
20000 [135]a
20100 [139]a[178]1500[167][140]
20110 [139]a[178]1500[167][142]
20115 x[178]a
20200 [135]b$,c$,d$,e$,f$,g$,h$
20300 [142]
23000 [133]"loadlast name";i1$
23010 [133]"loadfirst name";i2$
23015 [133]"loadaddress";i3$
23020 [133]"loadcity";i4$
23025 [133]"loadstate";i5$
23030 [133]"loadzip code";i6$
23035 [133]"loadphone number";i7$
23045 [153]"load";[166]10);"filing. please wait."
23050 [141]20000
23055 [139]x[177][178]1500[167][137]23120
23060 [139]a[178]1500[167][137]23070
23065 [137]23050
23070 ld[178][195](b$)[170][195](c$)[170][195](d$)[170][195](e$)[170][195](f$)[170][195](g$)[170][195](h$)[170][195]([196](a))
23075 [139]ld[177][178]67[167]x[178]x[170]1:[139]ed[178]1[167]ed[178]2:[142]
23076 [139]ed[178]1[167][142]
23080 dl[178][195](i1$)[170][195](i2$)[170][195](i3$)[170][195](i4$)[170][195](i5$)[170][195](i6$)[170][195](i7$)
23085 li[178]x[170]1:dl[178]dl[170][195]([196](li))
23090 r[178]4:[139]dl[177][178]67[167]23130
23095 [153]"load"[201]([196](li),[195]([196](li))[171]1)"data";li;"cmd,";i1$;",";i2$;
23100 [153]",";i3$;",";i4$;",";i5$;",";i6$;",";i7$
23105 [153]"run1510"
23110 [153]"";:[151]198,r:[129]i[178]631[164]635:[151]i,13:[130]:[128]
23120 [153]"load"[166]13);"memory full!!!wait":[129]l[178]1[164]2000:[130]
23125 [140]:[142]
23130 [153]"load"[201]([196](li),[195]([196](li))[171]1)"data";li;"cmd,";i1$;",";i2$;
23135 [153]",";i3$
23140 li[178]li[170]1
23145 [153][201]([196](li),[195]([196](li))[171]1)"data";i4$;",";i5$;",";i6$;",";i7$
23150 r[178]5:[137]23105